<template>
  <div class="echarts-contain">
    <div class="echarts-content">
      <el-card class="box-card" :body-style="{padding: '5px 20px'}">
        <div slot="header" class="clearfix">
          <span>柱状图自定义提示</span>
          <el-button style="float: right; padding: 3px 0" type="text" @click="more">更多</el-button>
        </div>
        <div>
          <tipBar :height="230 + 'px'"></tipBar>
        </div>
      </el-card>
    </div>
    <div class="echarts-content">
      <el-card class="box-card" :body-style="{padding: '5px 20px'}">
        <div slot="header" class="clearfix">
          <span>3D柱状图</span>
          <el-button style="float: right; padding: 3px 0" type="text" @click="more">更多</el-button>
        </div>
        <div>
          <div>客车有签未用</div>
          <Lines :height="100 + 'px'" id="carId"></Lines>
          <div>货车有签未用</div>
          <Lines :height="100 + 'px'" id="trackId"></Lines>
        </div>
      </el-card>
    </div>
    <div class="echarts-contents">
      <el-card class="box-card" :body-style="{padding: '5px 20px'}">
        <div slot="header" class="clearfix">
          <span>echarts地图</span>
          <el-button style="float: right; padding: 3px 0" type="text" @click="more">更多</el-button>
        </div>
        <div>
          <!-- <eight-map></eight-map> -->
        </div>
      </el-card>
    </div>
    <div class="echarts-contents">
      <div class="echarts-content">
      <el-card class="box-card" :body-style="{padding: '5px 20px'}">
        <div slot="header" class="clearfix">
          <span>3D渐变图</span>
          <el-button style="float: right; padding: 3px 0" type="text" @click="more">更多</el-button>
        </div>
        <div>
          <!-- <gradient-bar></gradient-bar> -->
        </div>
      </el-card>
    </div>
    <div class="echarts-content">
      <el-card class="box-card" :body-style="{padding: '5px 20px'}">
        <div slot="header" class="clearfix">
          <span>3D渐变图</span>
          <el-button style="float: right; padding: 3px 0" type="text" @click="more">更多</el-button>
        </div>
        <div>
          <!-- <threed-bar :height="230 + 'px'"></threed-bar> -->
        </div>
      </el-card>
    </div>
    </div>
  </div>
</template>

<script>
import tipBar from './lineComponents/tipBar.vue'
import Lines from './lineComponents/3dLine.vue'
export default {
  components: {
    tipBar,
    Lines
  },
  data(){
    return {}
  },
  mounted(){},
  methods: {
    more(){
      window.open('https://echarts.apache.org/zh/index.html')
    }
  }
}
</script>

<style lang="scss" scoped>
.echarts-contain {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around
}

.echarts-content {
  width: 49%;
  height: 300px;
  margin: 10px 0px;
}
.echarts-contents{
  width: 49%;
  height: 750px;
  margin: 10px 0px;
  .echarts-content {
  width: 100%;
  height: 365px;
  margin: 10px 0px;
}
}
.text {
    font-size: 14px;
  }

  .item {
    margin-bottom: 18px;
  }

  .clearfix:before,
  .clearfix:after {
    display: table;
    content: "";
  }
  .clearfix:after {
    clear: both
  }

  .box-card {
    width: 100%;
    height: 100%;
  }
</style>